package com.zeroext.action.common;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class BaseAction extends ActionSupport{
    HttpServletRequest request = ServletActionContext.getRequest();
    HttpServletResponse response = ServletActionContext.getResponse();
    
    
    protected HttpServletRequest getRequest(){
        return  ServletActionContext.getRequest();
    }
    protected HttpServletResponse getResponse(){
        return ServletActionContext.getResponse();
    }
    protected HttpSession getSession(){
        return ServletActionContext.getRequest().getSession();
    }
}
